package com.zhitan.ems.app.iot.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.zhitan.ems.framework.core.mp.base.BaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.zhitan.ems.common.annotation.Excel;
import java.util.Date;
import java.util.List;

import lombok.Data;
import lombok.EqualsAndHashCode;
import io.swagger.annotations.ApiModelProperty;

/**
 * 设备属性分组
 * 
 * @author zhitan
 * 
 * @date 2025-09-29 22:33:27
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("iot_device_property_group")
public class DevicePropertyGroupEntity extends BaseEntity {
	private static final long serialVersionUID = 1L;
	/**
	 * 
	 */
	@TableId
	@Excel(name = "ID")
	private Long id;
	@ApiModelProperty("能源类型：10 水 20 电 30 气 ")
	@Excel(name = "能源类型")
	private Integer energyType;
	/**
	 * 
	 */
	@Excel(name = "名称")
	private String name;
	/**
	 * 编码
	 */
	@ApiModelProperty("编码")
	@Excel(name = "编码")
	private String groupCode;
	/**
	 * 顺序
	 */
	@ApiModelProperty("顺序")
	@Excel(name = "顺序")
	private Integer sortOrder;
	/**
	 * 创建时间
	 */
	@ApiModelProperty("创建时间")
	@JsonFormat(pattern = "yyyy-MM-dd")
	@Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
	private Date createAt;
	/**
	 * 更新时间
	 */
	@ApiModelProperty("更新时间")
	@JsonFormat(pattern = "yyyy-MM-dd")
	@Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
	private Date updateAt;
	
	
	@TableField(exist = false)
	List<DevicePropertyEntity> proPertyList;

}